<?php
$ActivityId = intval($_REQUEST['ActivityId']);
$ActivityName= $_REQUEST['ActivityName'];
$Category = $_REQUEST['Category'];
include 'conn.php';

$sql = "insert into activity(ActivityId,ActivityName,Category) values('$ActivityId','$ActivityName','$Category')";

$result = @mysql_query($sql);

if ($result){
	echo json_encode(array('success'=>true));
} else {
	echo json_encode(array('msg'=>'Some errors occured.'));
}
?>